home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig09_07.jar
/
Ch09
/
Fig09_07
/
Fig09_07.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-27
|
442b
|
24 lines
// Fig. 9.7: fig09_07.cpp
// Demonstrate when base-class and derived-class
// constructors and destructors are called.
#include <iostream.h>
#include "point2.h"
#include "circle2.h"
int main()
{
// Show constructor and destructor calls for Point
{
Point p( 11, 22 );
}
cout << endl;
Circle circle1( 4.5, 72, 29 );
cout << endl;
Circle circle2( 10, 5, 5 );
cout << endl;
return 0;
}